﻿using System;

namespace ThirdConsole
{
    internal class Program
    {
        static void Main(string[] args)
        {
            #region 算数运算符
            int a = 10;
            Console.WriteLine(a++); 
            Console.WriteLine(++a);
            #endregion

            #region is表达式
            object obj = 3.14m;
            if(obj is decimal d)
            {
                Console.WriteLine(d);
            }
            #endregion

            #region Console类
            Console.Title = "第三单元";
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.BackgroundColor = ConsoleColor.Red;
            Console.WriteLine("123123123");
            Console.ResetColor();
            Console.Read();

            #endregion

            #region 转移字符
            string str = "你好，我的名字叫\"王光泽\"";
            Console.WriteLine(str);
            #endregion
        }
    }
}
